#将分数在0和1之间切换
$execute if score $(name) $(scoreboard) matches 1 run return run scoreboard players set $(name) $(scoreboard) 0
$execute if score $(name) $(scoreboard) matches 0 run return run scoreboard players set $(name) $(scoreboard) 1